<?php /* Smarty version 2.6.18, created on 2010-10-21 10:03:56
         compiled from admin/admission/add_admission.tpl */ ?>
            Select programme: 
            <select name="pro_title" id="pro_title">
            <?php if ($this->_tpl_vars['hasProgramme']): ?>
        		<?php while ($this->_tpl_vars['pro_list']->fetch()) { ?>
                <option value="<?php echo $this->_tpl_vars['pro_list']->menu_id; ?>
"><?php echo $this->_tpl_vars['pro_list']->menu_title; ?>
</option>
        		<?php } ?>
    		<?php else: ?>
    		    <option value="-1">--No programme--</option>
		    <?php endif; ?>
    	    </select>    	    
    	    Select partner:
    	    <select name="pro_partner" id="pro_partner">
    	    <?php if ($this->_tpl_vars['hasPartner']): ?>
        	    <?php $_from = $this->_tpl_vars['partner_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['partner']):
?>
                    <option value="<?php echo $this->_tpl_vars['partner']['partner_id']; ?>
"><?php echo $this->_tpl_vars['partner']['partner_title']; ?>
</option>
                <?php endforeach; endif; unset($_from); ?>
            <?php else: ?>
    		    <option value="-1">--No partner--</option>
            <?php endif; ?>
    	    </select>
    	    <?php if ($this->_tpl_vars['hasProgramme']): ?>
    	       <?php if ($this->_tpl_vars['hasPartner']): ?>
    	       <input type="button" class="btn_add" onclick="addPartnerAdmission()" value="Add" />
    	       <?php endif; ?>
            <?php endif; ?>